<!DOCTYPE html>
<html>
<head>
    <title>商报付款管理</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="form-group col-sm-2">
            <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
        </div>
        <div class="form-group col-sm-2">
            <select v-model="q.insurancetype" class="form-control">
                <option v-for="insurancetype in insurancetype" :value="insurancetype.value">{{insurancetype.label}}
                </option>
            </select>
        </div>
        <div class="grid-btn">
            <a class="btn btn-primary" @click="query"></i>&nbsp;查询</a>
            #if($shiro.hasPermission("businesspay:save"))
            <a @click="add" hidden="true"><i class="fa fa-plus"></i>&nbsp;新增</a>
            #end
            #if($shiro.hasPermission("businesspay:update"))
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            #end
            #if($shiro.hasPermission("businesspay:delete"))
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            #end
            #if($shiro.hasPermission("businesspay:firstaudit"))
            <a class="btn btn-primary" @click="firstaudit"><i class="fa fa-pencil-square-o"></i>&nbsp;一审</a>
            #end
            #if($shiro.hasPermission("businesspay:secondaudit"))
            <a class="btn btn-primary" @click="secondaudit"><i class="fa fa-pencil-square-o"></i>&nbsp;二审</a>
            #end
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-1 control-label">结算点</div>
                <div class="col-sm-2">
                    <input type="text" class="form-control hidden" v-model="businesspay.settlementid" placeholder="结算点id"
                           readonly="readonly"/>
                    <input type="text" class="form-control" v-model="businesspay.settlementname" placeholder="结算点"
                           readonly="readonly"/>
                </div>
                <div class="col-sm-1 control-label">姓名</div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" v-model="businesspay.name" placeholder="姓名"
                           readonly="readonly"/>
                </div>

                <div class="col-sm-1 control-label">年龄</div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" v-model="businesspay.age" placeholder="年龄"
                           readonly="readonly"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">性别</div>
                <div class="col-sm-2">
                    <select v-model="businesspay.chsex" class="form-control" disabled="disabled">
                        <option v-for="chsex in chsex" :value="chsex.value">{{chsex.label}}</option>
                    </select>
                </div>
                <div class="col-sm-1 control-label">身份证号</div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" v-model="businesspay.idnumber" placeholder="身份证号"
                           readonly="readonly"/>
                </div>
                <div class="col-sm-1 control-label">保险类型</div>
                <div class="col-sm-2">
                    <select v-model="businesspay.insurancetype" class="form-control" disabled="disabled">
                        <option v-for="insurancetype in insurancetype" :value="insurancetype.value">
                            {{insurancetype.label}}
                        </option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">保险编号</div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" v-model="businesspay.insuranceid" placeholder="保险编号"
                           readonly="readonly"/>
                </div>
                <div class="col-sm-1 control-label">保险金额</div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" v-model="businesspay.insuranceamount" placeholder="保险金额">
                </div>
            </div>
            <!-- <hr style="height:1px;border:none;border-top:1px solid #555555;" />-->

            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/serviceManagement/businesspay.js?_${date.systemTime}"></script>
</body>
</html>